<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/glWidget.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('glWidget_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">glWidget.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="glWidget_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __GL_WIDGET_H__</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __GL_WIDGET_H__</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">// forward declarations</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">class </span><a class="code" href="classglDisplay.html">glDisplay</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classglWidget.html">   40</a></span>&#160;<span class="keyword">class </span><a class="code" href="classglWidget.html">glWidget</a></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">   46</a></span>&#160;        <span class="keyword">enum</span> <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">Shape</a></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        {</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cad04a01cc5e6e4e8e7647a73f5787891a">   48</a></span>&#160;                <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cad04a01cc5e6e4e8e7647a73f5787891a">Rect</a>,</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cac5e34b010d96dd6ff5729a5df336baff">   49</a></span>&#160;                <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cac5e34b010d96dd6ff5729a5df336baff">Line</a>,</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3ca894b67c9e62420331395e399d387cdbc">   50</a></span>&#160;                <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3ca894b67c9e62420331395e399d387cdbc">Ellipse</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        };</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="classglWidget.html#a5f7240a0283bf7aec96f2e0c7b58b9e1">glWidget</a>( <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">Shape</a> shape=<a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cad04a01cc5e6e4e8e7647a73f5787891a">Rect</a> );</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <a class="code" href="classglWidget.html#a5f7240a0283bf7aec96f2e0c7b58b9e1">glWidget</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height, <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">Shape</a> shape=<a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cad04a01cc5e6e4e8e7647a73f5787891a">Rect</a> );</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classglWidget.html#a938b3d84be4081d4f6828df2f391cd46">~glWidget</a>();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classglWidget.html#aed8d19970d2ab09e7dc7fc45de30f12b">Contains</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y ) <span class="keyword">const</span>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classglWidget.html#a3ef9c4e97e7998b6e150e7edfcce140c">   76</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a3ef9c4e97e7998b6e150e7edfcce140c">Move</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y )                                    { <a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a> += x; <a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a> += y; }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classglWidget.html#a4b0b580a068e05f6a4f96292e24a63b6">   81</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a4b0b580a068e05f6a4f96292e24a63b6">X</a>()<span class="keyword"> const                                                          </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a>; }</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classglWidget.html#a634e82aa95f40ca76c2beec834769717">   86</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a634e82aa95f40ca76c2beec834769717">Y</a>()<span class="keyword"> const                                                          </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a>; }</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classglWidget.html#a3670b74a4763abbcd4d21500f4ac626c">   91</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a3670b74a4763abbcd4d21500f4ac626c">SetX</a>( <span class="keywordtype">float</span> x )                                                     { <a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a> = x; }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classglWidget.html#a9d55a8dcab6721a154b2e4f5ed53d586">   96</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a9d55a8dcab6721a154b2e4f5ed53d586">SetY</a>( <span class="keywordtype">float</span> y )                                                     { <a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a> = y; }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classglWidget.html#aeded50b8cb9112b874013be651299674">  101</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#aeded50b8cb9112b874013be651299674">Width</a>()<span class="keyword"> const                                                      </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a>; }</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classglWidget.html#a410c337398dd9fc5aa79c19539750642">  106</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a410c337398dd9fc5aa79c19539750642">Height</a>()<span class="keyword"> const                                                     </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a>; }</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classglWidget.html#af55b147cc0621a07b85490cb6d7c1824">  111</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#af55b147cc0621a07b85490cb6d7c1824">SetWidth</a>( <span class="keywordtype">float</span> width )                                     { <a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a> = width; }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classglWidget.html#ac835bf8ff0f03d34634aaff9b2e4e80e">  116</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#ac835bf8ff0f03d34634aaff9b2e4e80e">SetHeight</a>( <span class="keywordtype">float</span> height )                                   { <a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a> = height; }</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classglWidget.html#afc49dde308a61b86ee18f9fec63de1a1">  121</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#afc49dde308a61b86ee18f9fec63de1a1">GetPosition</a>( <span class="keywordtype">float</span>* x, <span class="keywordtype">float</span>* y )<span class="keyword"> const             </span>{ <span class="keywordflow">if</span>(x) *x=<a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a>; <span class="keywordflow">if</span>(y) *y=<a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a>; }</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classglWidget.html#abc85ba15d783f8693783321d474b61b2">  126</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#abc85ba15d783f8693783321d474b61b2">SetPosition</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y )                             { <a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a> = x; <a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a> = y; }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classglWidget.html#ae82ec5754f965f37ce5ed99681d8eff4">  131</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#ae82ec5754f965f37ce5ed99681d8eff4">GetCoords</a>( <span class="keywordtype">float</span>* x1, <span class="keywordtype">float</span>* y1, <span class="keywordtype">float</span>* x2, <span class="keywordtype">float</span>* y2 )<span class="keyword"> const       </span>{ <span class="keywordflow">if</span>(x1) *x1=<a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a>; <span class="keywordflow">if</span>(y1) *y1=<a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a>; <span class="keywordflow">if</span>(x2) *x2=<a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a>+<a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a>; <span class="keywordflow">if</span>(y2) *y2=<a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a>+<a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a>; }</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classglWidget.html#a6bd07231a3e27058e2576faf800337e8">  136</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a6bd07231a3e27058e2576faf800337e8">SetCoords</a>( <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2 )                 { <a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a> = x1; <a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a> = y1; <a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a>=x2-x1; <a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a>=y2-y1; }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classglWidget.html#aecc3f788b33837162593b54565056d2f">  141</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#aecc3f788b33837162593b54565056d2f">GetSize</a>( <span class="keywordtype">float</span>* width, <span class="keywordtype">float</span>* height )<span class="keyword"> const        </span>{ <span class="keywordflow">if</span>(width) *width=<a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a>; <span class="keywordflow">if</span>(height) *height=<a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a>; }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classglWidget.html#ae5c7bf0eb812a4f935e0ba8738828c97">  146</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#ae5c7bf0eb812a4f935e0ba8738828c97">SetSize</a>( <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height )                        { <a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a> = width; <a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a> = height; }</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classglWidget.html#a10e33fe5484d5411e7ce118c70e680b1">  151</a></span>&#160;        <span class="keyword">inline</span> <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">Shape</a> <a class="code" href="classglWidget.html#a10e33fe5484d5411e7ce118c70e680b1">GetShape</a>()<span class="keyword"> const                                                   </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#ad9102c8fbb5f691bd0ca077bd6dc7391">mShape</a>; }</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classglWidget.html#a3610f2dfa2ae4af84c492c49a9e780d0">  156</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a3610f2dfa2ae4af84c492c49a9e780d0">SetShape</a>( <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">Shape</a> shape )                                     { <a class="code" href="classglWidget.html#ad9102c8fbb5f691bd0ca077bd6dc7391">mShape</a> = shape; }</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classglWidget.html#a8abbff6976a842be844a62c81e5b71e8">  161</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a8abbff6976a842be844a62c81e5b71e8">SetFillAlpha</a>( <span class="keywordtype">float</span> a )                                     { <a class="code" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">mFillColor</a>[3] = a; }</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classglWidget.html#a1f00e8ad61269abc413a52adddf42044">  166</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a1f00e8ad61269abc413a52adddf42044">SetLineAlpha</a>( <span class="keywordtype">float</span> a )                                     { <a class="code" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">mLineColor</a>[3] = a; }</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classglWidget.html#a64d351dab596aa07f1d8ef5c0628364b">  171</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a64d351dab596aa07f1d8ef5c0628364b">SetLineWidth</a>( <span class="keywordtype">float</span> width )                                 { <a class="code" href="classglWidget.html#a547aadefb60d6851d67921d97915fb24">mLineWidth</a> = width; }</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classglWidget.html#a67543e3cef0771c57b317f6ad44ba9bc">  176</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a67543e3cef0771c57b317f6ad44ba9bc">SetFillColor</a>( <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a=1.0f )                     { <a class="code" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">mFillColor</a>[0] = r; <a class="code" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">mFillColor</a>[1] = g; <a class="code" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">mFillColor</a>[2] = b; <a class="code" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">mFillColor</a>[3] = a; }</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classglWidget.html#ac94ab886da5e37d1cbe9d32000c01700">  181</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#ac94ab886da5e37d1cbe9d32000c01700">SetLineColor</a>( <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a=1.0f )                     { <a class="code" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">mLineColor</a>[0] = r; <a class="code" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">mLineColor</a>[1] = g; <a class="code" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">mLineColor</a>[2] = b; <a class="code" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">mLineColor</a>[3] = a; }</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classglWidget.html#a67e0fdf6cc515e0349c77c29a35f9e0b">  186</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a67e0fdf6cc515e0349c77c29a35f9e0b">SetSelectedFillColor</a>( <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a=1.0f )     { <a class="code" href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">mSelectedFillColor</a>[0] = r; <a class="code" href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">mSelectedFillColor</a>[1] = g; <a class="code" href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">mSelectedFillColor</a>[2] = b; <a class="code" href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">mSelectedFillColor</a>[3] = a; }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classglWidget.html#a7e43a63d48c50cf89e874927980c8baf">  191</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a7e43a63d48c50cf89e874927980c8baf">SetSelectedLineColor</a>( <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a=1.0f )     { <a class="code" href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">mSelectedLineColor</a>[0] = r; <a class="code" href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">mSelectedLineColor</a>[1] = g; <a class="code" href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">mSelectedLineColor</a>[2] = b; <a class="code" href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">mSelectedLineColor</a>[3] = a; }</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classglWidget.html#a6016740b9bfcf7c849dddf7f0fff98fc">  196</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classglWidget.html#a6016740b9bfcf7c849dddf7f0fff98fc">IsMoveable</a>()<span class="keyword"> const                                          </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a95538a31f4d57c466a36f40dbd8562cf">mMoveable</a>; }</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classglWidget.html#a2a93b1a07f8fbd0ef4bb9beddea1ee2f">  201</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a2a93b1a07f8fbd0ef4bb9beddea1ee2f">SetMoveable</a>( <span class="keywordtype">bool</span> moveable )                                { <a class="code" href="classglWidget.html#a95538a31f4d57c466a36f40dbd8562cf">mMoveable</a> = moveable; }</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classglWidget.html#af8be5c9bb96f9dd97833a628352360c1">  206</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classglWidget.html#af8be5c9bb96f9dd97833a628352360c1">IsResizeable</a>()<span class="keyword"> const                                                </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a98e3826fac04535c03dc0858cdfb1304">mResizeable</a>; }</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classglWidget.html#a76ce29371050c947e4edabfcd00d2ba5">  211</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a76ce29371050c947e4edabfcd00d2ba5">SetResizeable</a>( <span class="keywordtype">bool</span> resizeable )                            { <a class="code" href="classglWidget.html#a98e3826fac04535c03dc0858cdfb1304">mResizeable</a> = resizeable; }</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classglWidget.html#aa9a1474827c54f17307b38fd0bdfc7ca">  216</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classglWidget.html#aa9a1474827c54f17307b38fd0bdfc7ca">IsSelected</a>()<span class="keyword"> const                                          </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a48a4c2aa384316ec39cc10707e945821">mSelected</a>; }</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classglWidget.html#a137efa9e4be163b8ed78cc8579199986">  221</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a137efa9e4be163b8ed78cc8579199986">SetSelected</a>( <span class="keywordtype">bool</span> selected )                                { <a class="code" href="classglWidget.html#a48a4c2aa384316ec39cc10707e945821">mSelected</a> = <span class="keyword">true</span>; }</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="classglWidget.html#ad1ce1a241774d63cc1a0b2a07930fb92">  226</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classglWidget.html#ad1ce1a241774d63cc1a0b2a07930fb92">IsVisible</a>()<span class="keyword"> const                                                   </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#ac9bbb7e6994a717426e166fa52fbf390">mVisible</a>; }</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classglWidget.html#a0710d5b99bb86794ee0117e2cb910ec1">  231</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a0710d5b99bb86794ee0117e2cb910ec1">SetVisible</a>( <span class="keywordtype">bool</span> visible )                                  { <a class="code" href="classglWidget.html#ac9bbb7e6994a717426e166fa52fbf390">mVisible</a> = visible; }</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classglWidget.html#a5cc9a94d7e6778b94e69ed1fb9e625da">  236</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span>* <a class="code" href="classglWidget.html#a5cc9a94d7e6778b94e69ed1fb9e625da">GetUserData</a>()<span class="keyword"> const                                                </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a287d4315717939729f948c0ac73ebdbb">mUserData</a>; }</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classglWidget.html#a6769b290a1d646f111abdea3b0de78c1">  241</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a6769b290a1d646f111abdea3b0de78c1">SetUserData</a>( <span class="keywordtype">void</span>* user )                                   { <a class="code" href="classglWidget.html#a287d4315717939729f948c0ac73ebdbb">mUserData</a> = user; }</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="classglWidget.html#a6bd2db265717ef90b6cbd65663c7f56f">  246</a></span>&#160;        <span class="keyword">inline</span> <a class="code" href="classglDisplay.html">glDisplay</a>* <a class="code" href="classglWidget.html#a6bd2db265717ef90b6cbd65663c7f56f">GetDisplay</a>()<span class="keyword"> const                                    </span>{ <span class="keywordflow">return</span> <a class="code" href="classglWidget.html#a0e268038b53182e91aa11b955a2c979b">mDisplay</a>; }</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classglWidget.html#a8099ad0207c2450231ab8b0ad4a5bd53">GetIndex</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#ac8934c3e32deaf2d86e806f48c667b94">Render</a>();</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#abad602c978f8ca73f197df4f690f1280">GlobalToLocal</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span>* x_out, <span class="keywordtype">float</span>* y_out ) <span class="keyword">const</span>;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a5d0f4c643dc9382bc3463f7178dcaeeb">LocalToGlobal</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span>* x_out, <span class="keywordtype">float</span>* y_out ) <span class="keyword">const</span>;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="classglWidget.html#a205213b643ddc9475c7a40da4711cda3">  281</a></span>&#160;        <span class="keyword">typedef</span> bool (*<a class="code" href="classglWidget.html#a205213b643ddc9475c7a40da4711cda3">glWidgetEventHandler</a>)(<a class="code" href="classglWidget.html">glWidget</a>* widget, uint16_t event, <span class="keywordtype">int</span> a, <span class="keywordtype">int</span> b, <span class="keywordtype">void</span>* user);</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#abd9f8f577749f268f8ae973a84333520">AddEventHandler</a>( <a class="code" href="classglWidget.html#a205213b643ddc9475c7a40da4711cda3">glWidgetEventHandler</a> callback, <span class="keywordtype">void</span>* user=NULL );</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#ab3cf5ffa3a98154149740b5ec95d62f0">RemoveEventHandler</a>( <a class="code" href="classglWidget.html#a205213b643ddc9475c7a40da4711cda3">glWidgetEventHandler</a> callback, <span class="keywordtype">void</span>* user=NULL );</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classglWidget.html#aadbd752016bf572f5e4c72888ca2a56a">OnEvent</a>( uint16_t event, <span class="keywordtype">int</span> a, <span class="keywordtype">int</span> b, <span class="keywordtype">void</span>* user );</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        </div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="classglWidget.html#abf272525875a119a6a3ee492f77f9f40">  306</a></span>&#160;        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classglDisplay.html">glDisplay</a>;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514e">  308</a></span>&#160;        <span class="keyword">enum</span> <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514e">DragState</a></div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        {</div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea121e3c481027b9e4c2a8992615d3be64">  310</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea121e3c481027b9e4c2a8992615d3be64">DragNone</a>,</div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea1f6745ca15db1c3dce19abb72cec30ad">  311</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea1f6745ca15db1c3dce19abb72cec30ad">DragMove</a>,</div><div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea0c27e48ae1ee5d2295447809642ccf18">  312</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea0c27e48ae1ee5d2295447809642ccf18">DragResizeN</a>,</div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea6aeb4e6769f3143a776d1d22738e1fac">  313</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea6aeb4e6769f3143a776d1d22738e1fac">DragResizeNW</a>,</div><div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea0237ac0d2bd5c6bcd64375e498cba7dc">  314</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea0237ac0d2bd5c6bcd64375e498cba7dc">DragResizeNE</a>,</div><div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514eab0616dbcca617af5fca82e5e47c5185e">  315</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514eab0616dbcca617af5fca82e5e47c5185e">DragResizeS</a>,</div><div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea163ec6f4f1687ff9360ba1f34557c7e5">  316</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea163ec6f4f1687ff9360ba1f34557c7e5">DragResizeSW</a>,</div><div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea24c648bf3ea000c3c83403ddda25afb8">  317</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea24c648bf3ea000c3c83403ddda25afb8">DragResizeSE</a>,</div><div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea10414d584132d70ff0fe6987fedb38d2">  318</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea10414d584132d70ff0fe6987fedb38d2">DragResizeW</a>,</div><div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea06b4c2ccb4718a192677e8da1c84c461">  319</a></span>&#160;                <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea06b4c2ccb4718a192677e8da1c84c461">DragResizeE</a>             </div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        };</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div><div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="structglWidget_1_1eventHandler.html">  322</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="structglWidget_1_1eventHandler.html">eventHandler</a></div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        {</div><div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="structglWidget_1_1eventHandler.html#a8d9ea46a31a237fe1ea60a193829607c">  324</a></span>&#160;                <a class="code" href="classglWidget.html#a205213b643ddc9475c7a40da4711cda3">glWidgetEventHandler</a> <a class="code" href="structglWidget_1_1eventHandler.html#a8d9ea46a31a237fe1ea60a193829607c">callback</a>;</div><div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="structglWidget_1_1eventHandler.html#ad2afcf0fb176377e284563dc9d630e75">  325</a></span>&#160;                <span class="keywordtype">void</span>* <a class="code" href="structglWidget_1_1eventHandler.html#ad2afcf0fb176377e284563dc9d630e75">user</a>;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;        };</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a795838e304f675e161a920fba097f5ae">initDefaults</a>();</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a4dc742d642246e0a52902baa9a628bb5">setCursor</a>( <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514e">DragState</a> cursor );     </div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a886ee453d0b0d2c79438ff3db520f617">setDisplay</a>( <a class="code" href="classglDisplay.html">glDisplay</a>* display );</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classglWidget.html#a583557bb83aad6e5c42169c0b41a0dd4">dispatchEvent</a>( uint16_t msg, <span class="keywordtype">int</span> a, <span class="keywordtype">int</span> b );</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514e">DragState</a> <a class="code" href="classglWidget.html#ac4783b98aae002ce1bd5696396bd9070">coordToBorder</a>( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> max_distance=10.0f );</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;</div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">  335</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">mX</a>;</div><div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">  336</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a3439736a22408fcc1fce45e642485530">mY</a>;</div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">  337</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">mWidth</a>;</div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">  338</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">mHeight</a>;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">  340</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">mSelectedFillColor</a>[4];</div><div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">  341</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">mSelectedLineColor</a>[4];</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">  343</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">mFillColor</a>[4];</div><div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">  344</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">mLineColor</a>[4];</div><div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="classglWidget.html#a547aadefb60d6851d67921d97915fb24">  345</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="classglWidget.html#a547aadefb60d6851d67921d97915fb24">mLineWidth</a>;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="classglWidget.html#a95538a31f4d57c466a36f40dbd8562cf">  347</a></span>&#160;        <span class="keywordtype">bool</span>  <a class="code" href="classglWidget.html#a95538a31f4d57c466a36f40dbd8562cf">mMoveable</a>;</div><div class="line"><a name="l00348"></a><span class="lineno"><a class="line" href="classglWidget.html#a98e3826fac04535c03dc0858cdfb1304">  348</a></span>&#160;        <span class="keywordtype">bool</span>  <a class="code" href="classglWidget.html#a98e3826fac04535c03dc0858cdfb1304">mResizeable</a>;</div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="classglWidget.html#a48a4c2aa384316ec39cc10707e945821">  349</a></span>&#160;        <span class="keywordtype">bool</span>  <a class="code" href="classglWidget.html#a48a4c2aa384316ec39cc10707e945821">mSelected</a>;</div><div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="classglWidget.html#ac9bbb7e6994a717426e166fa52fbf390">  350</a></span>&#160;        <span class="keywordtype">bool</span>  <a class="code" href="classglWidget.html#ac9bbb7e6994a717426e166fa52fbf390">mVisible</a>;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        </div><div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="classglWidget.html#ad9102c8fbb5f691bd0ca077bd6dc7391">  352</a></span>&#160;        <a class="code" href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">Shape</a> <a class="code" href="classglWidget.html#ad9102c8fbb5f691bd0ca077bd6dc7391">mShape</a>;</div><div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="classglWidget.html#a287d4315717939729f948c0ac73ebdbb">  353</a></span>&#160;        <span class="keywordtype">void</span>* <a class="code" href="classglWidget.html#a287d4315717939729f948c0ac73ebdbb">mUserData</a>;</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;</div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="classglWidget.html#a0e268038b53182e91aa11b955a2c979b">  355</a></span>&#160;        <a class="code" href="classglDisplay.html">glDisplay</a>* <a class="code" href="classglWidget.html#a0e268038b53182e91aa11b955a2c979b">mDisplay</a>;</div><div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="classglWidget.html#ac8828581618930321f0ddb589b956744">  356</a></span>&#160;        <a class="code" href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514e">DragState</a>  <a class="code" href="classglWidget.html#ac8828581618930321f0ddb589b956744">mDragState</a>;</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div><div class="line"><a name="l00358"></a><span class="lineno"><a class="line" href="classglWidget.html#ac184e8a4f67f8cd27c073e4a34188db0">  358</a></span>&#160;        std::vector&lt;eventHandler&gt; <a class="code" href="classglWidget.html#ac184e8a4f67f8cd27c073e4a34188db0">mEventHandlers</a>;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;};</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;</div><div class="ttc" id="classglWidget_html_a5f7240a0283bf7aec96f2e0c7b58b9e1"><div class="ttname"><a href="classglWidget.html#a5f7240a0283bf7aec96f2e0c7b58b9e1">glWidget::glWidget</a></div><div class="ttdeci">glWidget(Shape shape=Rect)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classglWidget_html_ab3cf5ffa3a98154149740b5ec95d62f0"><div class="ttname"><a href="classglWidget.html#ab3cf5ffa3a98154149740b5ec95d62f0">glWidget::RemoveEventHandler</a></div><div class="ttdeci">void RemoveEventHandler(glWidgetEventHandler callback, void *user=NULL)</div><div class="ttdoc">Remove an event message handler from being called by the widget. </div></div>
<div class="ttc" id="classglWidget_html_a583557bb83aad6e5c42169c0b41a0dd4"><div class="ttname"><a href="classglWidget.html#a583557bb83aad6e5c42169c0b41a0dd4">glWidget::dispatchEvent</a></div><div class="ttdeci">void dispatchEvent(uint16_t msg, int a, int b)</div></div>
<div class="ttc" id="classglWidget_html_a76ce29371050c947e4edabfcd00d2ba5"><div class="ttname"><a href="classglWidget.html#a76ce29371050c947e4edabfcd00d2ba5">glWidget::SetResizeable</a></div><div class="ttdeci">void SetResizeable(bool resizeable)</div><div class="ttdoc">Toggle if the user can resize the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:211</div></div>
<div class="ttc" id="classglWidget_html_afc49dde308a61b86ee18f9fec63de1a1"><div class="ttname"><a href="classglWidget.html#afc49dde308a61b86ee18f9fec63de1a1">glWidget::GetPosition</a></div><div class="ttdeci">void GetPosition(float *x, float *y) const</div><div class="ttdoc">Get position of widget in global window coordinates. </div><div class="ttdef"><b>Definition:</b> glWidget.h:121</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea0237ac0d2bd5c6bcd64375e498cba7dc"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea0237ac0d2bd5c6bcd64375e498cba7dc">glWidget::DragResizeNE</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:314</div></div>
<div class="ttc" id="classglWidget_html_a3610f2dfa2ae4af84c492c49a9e780d0"><div class="ttname"><a href="classglWidget.html#a3610f2dfa2ae4af84c492c49a9e780d0">glWidget::SetShape</a></div><div class="ttdeci">void SetShape(Shape shape)</div><div class="ttdoc">Set the shape. </div><div class="ttdef"><b>Definition:</b> glWidget.h:156</div></div>
<div class="ttc" id="classglWidget_html_a4b0b580a068e05f6a4f96292e24a63b6"><div class="ttname"><a href="classglWidget.html#a4b0b580a068e05f6a4f96292e24a63b6">glWidget::X</a></div><div class="ttdeci">float X() const</div><div class="ttdoc">Get the widget&amp;#39;s X coordinate. </div><div class="ttdef"><b>Definition:</b> glWidget.h:81</div></div>
<div class="ttc" id="classglWidget_html_a6769b290a1d646f111abdea3b0de78c1"><div class="ttname"><a href="classglWidget.html#a6769b290a1d646f111abdea3b0de78c1">glWidget::SetUserData</a></div><div class="ttdeci">void SetUserData(void *user)</div><div class="ttdoc">Set user-defined data. </div><div class="ttdef"><b>Definition:</b> glWidget.h:241</div></div>
<div class="ttc" id="classglWidget_html_ad1ce1a241774d63cc1a0b2a07930fb92"><div class="ttname"><a href="classglWidget.html#ad1ce1a241774d63cc1a0b2a07930fb92">glWidget::IsVisible</a></div><div class="ttdeci">bool IsVisible() const</div><div class="ttdoc">Is the widget visible. </div><div class="ttdef"><b>Definition:</b> glWidget.h:226</div></div>
<div class="ttc" id="classglWidget_html_aa9a1474827c54f17307b38fd0bdfc7ca"><div class="ttname"><a href="classglWidget.html#aa9a1474827c54f17307b38fd0bdfc7ca">glWidget::IsSelected</a></div><div class="ttdeci">bool IsSelected() const</div><div class="ttdoc">Is the widget selected? </div><div class="ttdef"><b>Definition:</b> glWidget.h:216</div></div>
<div class="ttc" id="classglWidget_html_a34532b25a0465161a8f4e591ffc3ad3ca894b67c9e62420331395e399d387cdbc"><div class="ttname"><a href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3ca894b67c9e62420331395e399d387cdbc">glWidget::Ellipse</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:50</div></div>
<div class="ttc" id="classglWidget_html_ac835bf8ff0f03d34634aaff9b2e4e80e"><div class="ttname"><a href="classglWidget.html#ac835bf8ff0f03d34634aaff9b2e4e80e">glWidget::SetHeight</a></div><div class="ttdeci">void SetHeight(float height)</div><div class="ttdoc">Set the widget&amp;#39;s height. </div><div class="ttdef"><b>Definition:</b> glWidget.h:116</div></div>
<div class="ttc" id="classglWidget_html_abd9f8f577749f268f8ae973a84333520"><div class="ttname"><a href="classglWidget.html#abd9f8f577749f268f8ae973a84333520">glWidget::AddEventHandler</a></div><div class="ttdeci">void AddEventHandler(glWidgetEventHandler callback, void *user=NULL)</div><div class="ttdoc">Register an event message handler the widget will send events to. </div></div>
<div class="ttc" id="classglWidget_html_abc85ba15d783f8693783321d474b61b2"><div class="ttname"><a href="classglWidget.html#abc85ba15d783f8693783321d474b61b2">glWidget::SetPosition</a></div><div class="ttdeci">void SetPosition(float x, float y)</div><div class="ttdoc">Set position of widget in global window coordinates. </div><div class="ttdef"><b>Definition:</b> glWidget.h:126</div></div>
<div class="ttc" id="classglWidget_html_a2a93b1a07f8fbd0ef4bb9beddea1ee2f"><div class="ttname"><a href="classglWidget.html#a2a93b1a07f8fbd0ef4bb9beddea1ee2f">glWidget::SetMoveable</a></div><div class="ttdeci">void SetMoveable(bool moveable)</div><div class="ttdoc">Toggle if the user can move/drag the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:201</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea24c648bf3ea000c3c83403ddda25afb8"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea24c648bf3ea000c3c83403ddda25afb8">glWidget::DragResizeSE</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:317</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514eab0616dbcca617af5fca82e5e47c5185e"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514eab0616dbcca617af5fca82e5e47c5185e">glWidget::DragResizeS</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:315</div></div>
<div class="ttc" id="classglWidget_html_aed8d19970d2ab09e7dc7fc45de30f12b"><div class="ttname"><a href="classglWidget.html#aed8d19970d2ab09e7dc7fc45de30f12b">glWidget::Contains</a></div><div class="ttdeci">bool Contains(float x, float y) const</div><div class="ttdoc">Test if the point is inside the widget. </div></div>
<div class="ttc" id="classglWidget_html_ac4783b98aae002ce1bd5696396bd9070"><div class="ttname"><a href="classglWidget.html#ac4783b98aae002ce1bd5696396bd9070">glWidget::coordToBorder</a></div><div class="ttdeci">DragState coordToBorder(float x, float y, float max_distance=10.0f)</div></div>
<div class="ttc" id="classglWidget_html_a5cc9a94d7e6778b94e69ed1fb9e625da"><div class="ttname"><a href="classglWidget.html#a5cc9a94d7e6778b94e69ed1fb9e625da">glWidget::GetUserData</a></div><div class="ttdeci">void * GetUserData() const</div><div class="ttdoc">Retrieve user data. </div><div class="ttdef"><b>Definition:</b> glWidget.h:236</div></div>
<div class="ttc" id="classglWidget_html_a98e3826fac04535c03dc0858cdfb1304"><div class="ttname"><a href="classglWidget.html#a98e3826fac04535c03dc0858cdfb1304">glWidget::mResizeable</a></div><div class="ttdeci">bool mResizeable</div><div class="ttdef"><b>Definition:</b> glWidget.h:348</div></div>
<div class="ttc" id="classglWidget_html_afbb6667e680df535ae0f29881a670b3a"><div class="ttname"><a href="classglWidget.html#afbb6667e680df535ae0f29881a670b3a">glWidget::mSelectedLineColor</a></div><div class="ttdeci">float mSelectedLineColor[4]</div><div class="ttdef"><b>Definition:</b> glWidget.h:341</div></div>
<div class="ttc" id="classglWidget_html_a6bd2db265717ef90b6cbd65663c7f56f"><div class="ttname"><a href="classglWidget.html#a6bd2db265717ef90b6cbd65663c7f56f">glWidget::GetDisplay</a></div><div class="ttdeci">glDisplay * GetDisplay() const</div><div class="ttdoc">Get the root window of the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:246</div></div>
<div class="ttc" id="classglWidget_html_aecc3f788b33837162593b54565056d2f"><div class="ttname"><a href="classglWidget.html#aecc3f788b33837162593b54565056d2f">glWidget::GetSize</a></div><div class="ttdeci">void GetSize(float *width, float *height) const</div><div class="ttdoc">Get the widget&amp;#39;s size. </div><div class="ttdef"><b>Definition:</b> glWidget.h:141</div></div>
<div class="ttc" id="classglWidget_html_ac94ab886da5e37d1cbe9d32000c01700"><div class="ttname"><a href="classglWidget.html#ac94ab886da5e37d1cbe9d32000c01700">glWidget::SetLineColor</a></div><div class="ttdeci">void SetLineColor(float r, float g, float b, float a=1.0f)</div><div class="ttdoc">Set outline color. </div><div class="ttdef"><b>Definition:</b> glWidget.h:181</div></div>
<div class="ttc" id="classglWidget_html_abad602c978f8ca73f197df4f690f1280"><div class="ttname"><a href="classglWidget.html#abad602c978f8ca73f197df4f690f1280">glWidget::GlobalToLocal</a></div><div class="ttdeci">void GlobalToLocal(float x, float y, float *x_out, float *y_out) const</div><div class="ttdoc">Convert from global window coordinates to local widget offset. </div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514e"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514e">glWidget::DragState</a></div><div class="ttdeci">DragState</div><div class="ttdef"><b>Definition:</b> glWidget.h:308</div></div>
<div class="ttc" id="classglWidget_html_ae5c7bf0eb812a4f935e0ba8738828c97"><div class="ttname"><a href="classglWidget.html#ae5c7bf0eb812a4f935e0ba8738828c97">glWidget::SetSize</a></div><div class="ttdeci">void SetSize(float width, float height)</div><div class="ttdoc">Set the widget&amp;#39;s size. </div><div class="ttdef"><b>Definition:</b> glWidget.h:146</div></div>
<div class="ttc" id="classglWidget_html_a4dc742d642246e0a52902baa9a628bb5"><div class="ttname"><a href="classglWidget.html#a4dc742d642246e0a52902baa9a628bb5">glWidget::setCursor</a></div><div class="ttdeci">void setCursor(DragState cursor)</div></div>
<div class="ttc" id="classglWidget_html_a795838e304f675e161a920fba097f5ae"><div class="ttname"><a href="classglWidget.html#a795838e304f675e161a920fba097f5ae">glWidget::initDefaults</a></div><div class="ttdeci">void initDefaults()</div></div>
<div class="ttc" id="classglWidget_html_a34532b25a0465161a8f4e591ffc3ad3cac5e34b010d96dd6ff5729a5df336baff"><div class="ttname"><a href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cac5e34b010d96dd6ff5729a5df336baff">glWidget::Line</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:49</div></div>
<div class="ttc" id="classglWidget_html_ac8828581618930321f0ddb589b956744"><div class="ttname"><a href="classglWidget.html#ac8828581618930321f0ddb589b956744">glWidget::mDragState</a></div><div class="ttdeci">DragState mDragState</div><div class="ttdef"><b>Definition:</b> glWidget.h:356</div></div>
<div class="ttc" id="classglWidget_html_a0e268038b53182e91aa11b955a2c979b"><div class="ttname"><a href="classglWidget.html#a0e268038b53182e91aa11b955a2c979b">glWidget::mDisplay</a></div><div class="ttdeci">glDisplay * mDisplay</div><div class="ttdef"><b>Definition:</b> glWidget.h:355</div></div>
<div class="ttc" id="classglWidget_html_ac8934c3e32deaf2d86e806f48c667b94"><div class="ttname"><a href="classglWidget.html#ac8934c3e32deaf2d86e806f48c667b94">glWidget::Render</a></div><div class="ttdeci">void Render()</div><div class="ttdoc">Render (automatically called by parent) </div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea6aeb4e6769f3143a776d1d22738e1fac"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea6aeb4e6769f3143a776d1d22738e1fac">glWidget::DragResizeNW</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:313</div></div>
<div class="ttc" id="classglWidget_html_a3ef9c4e97e7998b6e150e7edfcce140c"><div class="ttname"><a href="classglWidget.html#a3ef9c4e97e7998b6e150e7edfcce140c">glWidget::Move</a></div><div class="ttdeci">void Move(float x, float y)</div><div class="ttdoc">Move the widget&amp;#39;s position by the specified offset. </div><div class="ttdef"><b>Definition:</b> glWidget.h:76</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea0c27e48ae1ee5d2295447809642ccf18"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea0c27e48ae1ee5d2295447809642ccf18">glWidget::DragResizeN</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:312</div></div>
<div class="ttc" id="classglWidget_html_a14e536803cdf07f1186b5a1be256e2bb"><div class="ttname"><a href="classglWidget.html#a14e536803cdf07f1186b5a1be256e2bb">glWidget::mX</a></div><div class="ttdeci">float mX</div><div class="ttdef"><b>Definition:</b> glWidget.h:335</div></div>
<div class="ttc" id="structglWidget_1_1eventHandler_html_a8d9ea46a31a237fe1ea60a193829607c"><div class="ttname"><a href="structglWidget_1_1eventHandler.html#a8d9ea46a31a237fe1ea60a193829607c">glWidget::eventHandler::callback</a></div><div class="ttdeci">glWidgetEventHandler callback</div><div class="ttdef"><b>Definition:</b> glWidget.h:324</div></div>
<div class="ttc" id="classglWidget_html_af8be5c9bb96f9dd97833a628352360c1"><div class="ttname"><a href="classglWidget.html#af8be5c9bb96f9dd97833a628352360c1">glWidget::IsResizeable</a></div><div class="ttdeci">bool IsResizeable() const</div><div class="ttdoc">Is the widget resizeable by the user? </div><div class="ttdef"><b>Definition:</b> glWidget.h:206</div></div>
<div class="ttc" id="classglWidget_html_ad9102c8fbb5f691bd0ca077bd6dc7391"><div class="ttname"><a href="classglWidget.html#ad9102c8fbb5f691bd0ca077bd6dc7391">glWidget::mShape</a></div><div class="ttdeci">Shape mShape</div><div class="ttdef"><b>Definition:</b> glWidget.h:352</div></div>
<div class="ttc" id="classglWidget_html_a938b3d84be4081d4f6828df2f391cd46"><div class="ttname"><a href="classglWidget.html#a938b3d84be4081d4f6828df2f391cd46">glWidget::~glWidget</a></div><div class="ttdeci">virtual ~glWidget()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="classglWidget_html_a6bd07231a3e27058e2576faf800337e8"><div class="ttname"><a href="classglWidget.html#a6bd07231a3e27058e2576faf800337e8">glWidget::SetCoords</a></div><div class="ttdeci">void SetCoords(float x1, float y1, float x2, float y2)</div><div class="ttdoc">Set the bounding coordinates of the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:136</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea121e3c481027b9e4c2a8992615d3be64"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea121e3c481027b9e4c2a8992615d3be64">glWidget::DragNone</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:310</div></div>
<div class="ttc" id="classglWidget_html"><div class="ttname"><a href="classglWidget.html">glWidget</a></div><div class="ttdoc">OpenGL graphics widget for rendering moveable/resizable shapes. </div><div class="ttdef"><b>Definition:</b> glWidget.h:40</div></div>
<div class="ttc" id="classglWidget_html_a34532b25a0465161a8f4e591ffc3ad3c"><div class="ttname"><a href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3c">glWidget::Shape</a></div><div class="ttdeci">Shape</div><div class="ttdoc">Shape enum. </div><div class="ttdef"><b>Definition:</b> glWidget.h:46</div></div>
<div class="ttc" id="classglWidget_html_a3670b74a4763abbcd4d21500f4ac626c"><div class="ttname"><a href="classglWidget.html#a3670b74a4763abbcd4d21500f4ac626c">glWidget::SetX</a></div><div class="ttdeci">void SetX(float x)</div><div class="ttdoc">Set the widget&amp;#39;s X coordinate. </div><div class="ttdef"><b>Definition:</b> glWidget.h:91</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea06b4c2ccb4718a192677e8da1c84c461"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea06b4c2ccb4718a192677e8da1c84c461">glWidget::DragResizeE</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:319</div></div>
<div class="ttc" id="structglWidget_1_1eventHandler_html_ad2afcf0fb176377e284563dc9d630e75"><div class="ttname"><a href="structglWidget_1_1eventHandler.html#ad2afcf0fb176377e284563dc9d630e75">glWidget::eventHandler::user</a></div><div class="ttdeci">void * user</div><div class="ttdef"><b>Definition:</b> glWidget.h:325</div></div>
<div class="ttc" id="classglWidget_html_a67e0fdf6cc515e0349c77c29a35f9e0b"><div class="ttname"><a href="classglWidget.html#a67e0fdf6cc515e0349c77c29a35f9e0b">glWidget::SetSelectedFillColor</a></div><div class="ttdeci">void SetSelectedFillColor(float r, float g, float b, float a=1.0f)</div><div class="ttdoc">Set selected fill color. </div><div class="ttdef"><b>Definition:</b> glWidget.h:186</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea10414d584132d70ff0fe6987fedb38d2"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea10414d584132d70ff0fe6987fedb38d2">glWidget::DragResizeW</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:318</div></div>
<div class="ttc" id="classglWidget_html_a547aadefb60d6851d67921d97915fb24"><div class="ttname"><a href="classglWidget.html#a547aadefb60d6851d67921d97915fb24">glWidget::mLineWidth</a></div><div class="ttdeci">float mLineWidth</div><div class="ttdef"><b>Definition:</b> glWidget.h:345</div></div>
<div class="ttc" id="classglDisplay_html"><div class="ttname"><a href="classglDisplay.html">glDisplay</a></div><div class="ttdoc">OpenGL display window and image/video renderer with CUDA interoperability. </div><div class="ttdef"><b>Definition:</b> glDisplay.h:47</div></div>
<div class="ttc" id="classglWidget_html_ac184e8a4f67f8cd27c073e4a34188db0"><div class="ttname"><a href="classglWidget.html#ac184e8a4f67f8cd27c073e4a34188db0">glWidget::mEventHandlers</a></div><div class="ttdeci">std::vector&lt; eventHandler &gt; mEventHandlers</div><div class="ttdef"><b>Definition:</b> glWidget.h:358</div></div>
<div class="ttc" id="classglWidget_html_aeded50b8cb9112b874013be651299674"><div class="ttname"><a href="classglWidget.html#aeded50b8cb9112b874013be651299674">glWidget::Width</a></div><div class="ttdeci">float Width() const</div><div class="ttdoc">Get the widget&amp;#39;s width. </div><div class="ttdef"><b>Definition:</b> glWidget.h:101</div></div>
<div class="ttc" id="classglWidget_html_a287d4315717939729f948c0ac73ebdbb"><div class="ttname"><a href="classglWidget.html#a287d4315717939729f948c0ac73ebdbb">glWidget::mUserData</a></div><div class="ttdeci">void * mUserData</div><div class="ttdef"><b>Definition:</b> glWidget.h:353</div></div>
<div class="ttc" id="classglWidget_html_a0710d5b99bb86794ee0117e2cb910ec1"><div class="ttname"><a href="classglWidget.html#a0710d5b99bb86794ee0117e2cb910ec1">glWidget::SetVisible</a></div><div class="ttdeci">void SetVisible(bool visible)</div><div class="ttdoc">Show/hide the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:231</div></div>
<div class="ttc" id="classglWidget_html_ac8ed0b33c5fa33dda0bbc4438d7d8521"><div class="ttname"><a href="classglWidget.html#ac8ed0b33c5fa33dda0bbc4438d7d8521">glWidget::mFillColor</a></div><div class="ttdeci">float mFillColor[4]</div><div class="ttdef"><b>Definition:</b> glWidget.h:343</div></div>
<div class="ttc" id="classglWidget_html_a10e33fe5484d5411e7ce118c70e680b1"><div class="ttname"><a href="classglWidget.html#a10e33fe5484d5411e7ce118c70e680b1">glWidget::GetShape</a></div><div class="ttdeci">Shape GetShape() const</div><div class="ttdoc">Get the shape. </div><div class="ttdef"><b>Definition:</b> glWidget.h:151</div></div>
<div class="ttc" id="classglWidget_html_af55b147cc0621a07b85490cb6d7c1824"><div class="ttname"><a href="classglWidget.html#af55b147cc0621a07b85490cb6d7c1824">glWidget::SetWidth</a></div><div class="ttdeci">void SetWidth(float width)</div><div class="ttdoc">Set the widget&amp;#39;s width. </div><div class="ttdef"><b>Definition:</b> glWidget.h:111</div></div>
<div class="ttc" id="classglWidget_html_ae82ec5754f965f37ce5ed99681d8eff4"><div class="ttname"><a href="classglWidget.html#ae82ec5754f965f37ce5ed99681d8eff4">glWidget::GetCoords</a></div><div class="ttdeci">void GetCoords(float *x1, float *y1, float *x2, float *y2) const</div><div class="ttdoc">Get the bounding coordinates of the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:131</div></div>
<div class="ttc" id="structglWidget_1_1eventHandler_html"><div class="ttname"><a href="structglWidget_1_1eventHandler.html">glWidget::eventHandler</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:322</div></div>
<div class="ttc" id="classglWidget_html_a64d351dab596aa07f1d8ef5c0628364b"><div class="ttname"><a href="classglWidget.html#a64d351dab596aa07f1d8ef5c0628364b">glWidget::SetLineWidth</a></div><div class="ttdeci">void SetLineWidth(float width)</div><div class="ttdoc">Set outline width. </div><div class="ttdef"><b>Definition:</b> glWidget.h:171</div></div>
<div class="ttc" id="classglWidget_html_a48a4c2aa384316ec39cc10707e945821"><div class="ttname"><a href="classglWidget.html#a48a4c2aa384316ec39cc10707e945821">glWidget::mSelected</a></div><div class="ttdeci">bool mSelected</div><div class="ttdef"><b>Definition:</b> glWidget.h:349</div></div>
<div class="ttc" id="classglWidget_html_a3439736a22408fcc1fce45e642485530"><div class="ttname"><a href="classglWidget.html#a3439736a22408fcc1fce45e642485530">glWidget::mY</a></div><div class="ttdeci">float mY</div><div class="ttdef"><b>Definition:</b> glWidget.h:336</div></div>
<div class="ttc" id="classglWidget_html_a6016740b9bfcf7c849dddf7f0fff98fc"><div class="ttname"><a href="classglWidget.html#a6016740b9bfcf7c849dddf7f0fff98fc">glWidget::IsMoveable</a></div><div class="ttdeci">bool IsMoveable() const</div><div class="ttdoc">Is the widget moveable/draggable by the user? </div><div class="ttdef"><b>Definition:</b> glWidget.h:196</div></div>
<div class="ttc" id="classglWidget_html_a8abbff6976a842be844a62c81e5b71e8"><div class="ttname"><a href="classglWidget.html#a8abbff6976a842be844a62c81e5b71e8">glWidget::SetFillAlpha</a></div><div class="ttdeci">void SetFillAlpha(float a)</div><div class="ttdoc">Set fill alpha. </div><div class="ttdef"><b>Definition:</b> glWidget.h:161</div></div>
<div class="ttc" id="classglWidget_html_a34532b25a0465161a8f4e591ffc3ad3cad04a01cc5e6e4e8e7647a73f5787891a"><div class="ttname"><a href="classglWidget.html#a34532b25a0465161a8f4e591ffc3ad3cad04a01cc5e6e4e8e7647a73f5787891a">glWidget::Rect</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:48</div></div>
<div class="ttc" id="classglWidget_html_aadbd752016bf572f5e4c72888ca2a56a"><div class="ttname"><a href="classglWidget.html#aadbd752016bf572f5e4c72888ca2a56a">glWidget::OnEvent</a></div><div class="ttdeci">bool OnEvent(uint16_t event, int a, int b, void *user)</div></div>
<div class="ttc" id="classglWidget_html_ae3f58166484b625be1c4f7f2ba40426f"><div class="ttname"><a href="classglWidget.html#ae3f58166484b625be1c4f7f2ba40426f">glWidget::mSelectedFillColor</a></div><div class="ttdeci">float mSelectedFillColor[4]</div><div class="ttdef"><b>Definition:</b> glWidget.h:340</div></div>
<div class="ttc" id="classglWidget_html_a95538a31f4d57c466a36f40dbd8562cf"><div class="ttname"><a href="classglWidget.html#a95538a31f4d57c466a36f40dbd8562cf">glWidget::mMoveable</a></div><div class="ttdeci">bool mMoveable</div><div class="ttdef"><b>Definition:</b> glWidget.h:347</div></div>
<div class="ttc" id="classglWidget_html_a410c337398dd9fc5aa79c19539750642"><div class="ttname"><a href="classglWidget.html#a410c337398dd9fc5aa79c19539750642">glWidget::Height</a></div><div class="ttdeci">float Height() const</div><div class="ttdoc">Get the widget&amp;#39;s height. </div><div class="ttdef"><b>Definition:</b> glWidget.h:106</div></div>
<div class="ttc" id="classglWidget_html_a634e82aa95f40ca76c2beec834769717"><div class="ttname"><a href="classglWidget.html#a634e82aa95f40ca76c2beec834769717">glWidget::Y</a></div><div class="ttdeci">float Y() const</div><div class="ttdoc">Get the widget&amp;#39;s Y coordinate. </div><div class="ttdef"><b>Definition:</b> glWidget.h:86</div></div>
<div class="ttc" id="classglWidget_html_ac9bbb7e6994a717426e166fa52fbf390"><div class="ttname"><a href="classglWidget.html#ac9bbb7e6994a717426e166fa52fbf390">glWidget::mVisible</a></div><div class="ttdeci">bool mVisible</div><div class="ttdef"><b>Definition:</b> glWidget.h:350</div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea163ec6f4f1687ff9360ba1f34557c7e5"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea163ec6f4f1687ff9360ba1f34557c7e5">glWidget::DragResizeSW</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:316</div></div>
<div class="ttc" id="classglWidget_html_a0cb5fcc7ea63cd0e03390ed5d8a12d60"><div class="ttname"><a href="classglWidget.html#a0cb5fcc7ea63cd0e03390ed5d8a12d60">glWidget::mWidth</a></div><div class="ttdeci">float mWidth</div><div class="ttdef"><b>Definition:</b> glWidget.h:337</div></div>
<div class="ttc" id="classglWidget_html_a205213b643ddc9475c7a40da4711cda3"><div class="ttname"><a href="classglWidget.html#a205213b643ddc9475c7a40da4711cda3">glWidget::glWidgetEventHandler</a></div><div class="ttdeci">bool(* glWidgetEventHandler)(glWidget *widget, uint16_t event, int a, int b, void *user)</div><div class="ttdoc">Event message handler callback for recieving UI messages from widgets. </div><div class="ttdef"><b>Definition:</b> glWidget.h:281</div></div>
<div class="ttc" id="classglWidget_html_a67543e3cef0771c57b317f6ad44ba9bc"><div class="ttname"><a href="classglWidget.html#a67543e3cef0771c57b317f6ad44ba9bc">glWidget::SetFillColor</a></div><div class="ttdeci">void SetFillColor(float r, float g, float b, float a=1.0f)</div><div class="ttdoc">Set fill color. </div><div class="ttdef"><b>Definition:</b> glWidget.h:176</div></div>
<div class="ttc" id="classglWidget_html_a886ee453d0b0d2c79438ff3db520f617"><div class="ttname"><a href="classglWidget.html#a886ee453d0b0d2c79438ff3db520f617">glWidget::setDisplay</a></div><div class="ttdeci">void setDisplay(glDisplay *display)</div></div>
<div class="ttc" id="classglWidget_html_a7f15154b3f74e0aa123ec192e66b1011"><div class="ttname"><a href="classglWidget.html#a7f15154b3f74e0aa123ec192e66b1011">glWidget::mLineColor</a></div><div class="ttdeci">float mLineColor[4]</div><div class="ttdef"><b>Definition:</b> glWidget.h:344</div></div>
<div class="ttc" id="classglWidget_html_a7e43a63d48c50cf89e874927980c8baf"><div class="ttname"><a href="classglWidget.html#a7e43a63d48c50cf89e874927980c8baf">glWidget::SetSelectedLineColor</a></div><div class="ttdeci">void SetSelectedLineColor(float r, float g, float b, float a=1.0f)</div><div class="ttdoc">Set selected outline color. </div><div class="ttdef"><b>Definition:</b> glWidget.h:191</div></div>
<div class="ttc" id="classglWidget_html_a9d55a8dcab6721a154b2e4f5ed53d586"><div class="ttname"><a href="classglWidget.html#a9d55a8dcab6721a154b2e4f5ed53d586">glWidget::SetY</a></div><div class="ttdeci">void SetY(float y)</div><div class="ttdoc">Set the widget&amp;#39;s Y coordinate. </div><div class="ttdef"><b>Definition:</b> glWidget.h:96</div></div>
<div class="ttc" id="classglWidget_html_afbfbfe9388ac30a99fa3c6ce422e89f8"><div class="ttname"><a href="classglWidget.html#afbfbfe9388ac30a99fa3c6ce422e89f8">glWidget::mHeight</a></div><div class="ttdeci">float mHeight</div><div class="ttdef"><b>Definition:</b> glWidget.h:338</div></div>
<div class="ttc" id="classglWidget_html_a8099ad0207c2450231ab8b0ad4a5bd53"><div class="ttname"><a href="classglWidget.html#a8099ad0207c2450231ab8b0ad4a5bd53">glWidget::GetIndex</a></div><div class="ttdeci">int GetIndex() const</div><div class="ttdoc">Get the index of the widget in the window (or -1 if none) </div></div>
<div class="ttc" id="classglWidget_html_a5d0f4c643dc9382bc3463f7178dcaeeb"><div class="ttname"><a href="classglWidget.html#a5d0f4c643dc9382bc3463f7178dcaeeb">glWidget::LocalToGlobal</a></div><div class="ttdeci">void LocalToGlobal(float x, float y, float *x_out, float *y_out) const</div><div class="ttdoc">Convert from local widget offset to global window coordinates. </div></div>
<div class="ttc" id="classglWidget_html_ac9f39ca9d55807649bad14a53e02514ea1f6745ca15db1c3dce19abb72cec30ad"><div class="ttname"><a href="classglWidget.html#ac9f39ca9d55807649bad14a53e02514ea1f6745ca15db1c3dce19abb72cec30ad">glWidget::DragMove</a></div><div class="ttdef"><b>Definition:</b> glWidget.h:311</div></div>
<div class="ttc" id="classglWidget_html_a137efa9e4be163b8ed78cc8579199986"><div class="ttname"><a href="classglWidget.html#a137efa9e4be163b8ed78cc8579199986">glWidget::SetSelected</a></div><div class="ttdeci">void SetSelected(bool selected)</div><div class="ttdoc">Select/de-select the widget. </div><div class="ttdef"><b>Definition:</b> glWidget.h:221</div></div>
<div class="ttc" id="classglWidget_html_a1f00e8ad61269abc413a52adddf42044"><div class="ttname"><a href="classglWidget.html#a1f00e8ad61269abc413a52adddf42044">glWidget::SetLineAlpha</a></div><div class="ttdeci">void SetLineAlpha(float a)</div><div class="ttdoc">Set outline alpha. </div><div class="ttdef"><b>Definition:</b> glWidget.h:166</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="glWidget_8h.html">glWidget.h</a></li>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
